package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsStreamScheduleOrderMapper;
import com.scau402.system.domain.WmsStreamScheduleOrder;
import com.scau402.system.service.IWmsStreamScheduleOrderService;

/**
 * 排班出库关联表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsStreamScheduleOrderServiceImpl implements IWmsStreamScheduleOrderService 
{
    @Autowired
    private WmsStreamScheduleOrderMapper wmsStreamScheduleOrderMapper;

    /**
     * 查询排班出库关联表
     * 
     * @param scheduleId 排班出库关联表主键
     * @return 排班出库关联表
     */
    @Override
    public WmsStreamScheduleOrder selectWmsStreamScheduleOrderByScheduleId(Long scheduleId)
    {
        return wmsStreamScheduleOrderMapper.selectWmsStreamScheduleOrderByScheduleId(scheduleId);
    }

    /**
     * 查询排班出库关联表列表
     * 
     * @param wmsStreamScheduleOrder 排班出库关联表
     * @return 排班出库关联表
     */
    @Override
    public List<WmsStreamScheduleOrder> selectWmsStreamScheduleOrderList(WmsStreamScheduleOrder wmsStreamScheduleOrder)
    {
        return wmsStreamScheduleOrderMapper.selectWmsStreamScheduleOrderList(wmsStreamScheduleOrder);
    }

    /**
     * 新增排班出库关联表
     * 
     * @param wmsStreamScheduleOrder 排班出库关联表
     * @return 结果
     */
    @Override
    public int insertWmsStreamScheduleOrder(WmsStreamScheduleOrder wmsStreamScheduleOrder)
    {
        return wmsStreamScheduleOrderMapper.insertWmsStreamScheduleOrder(wmsStreamScheduleOrder);
    }

    /**
     * 修改排班出库关联表
     * 
     * @param wmsStreamScheduleOrder 排班出库关联表
     * @return 结果
     */
    @Override
    public int updateWmsStreamScheduleOrder(WmsStreamScheduleOrder wmsStreamScheduleOrder)
    {
        return wmsStreamScheduleOrderMapper.updateWmsStreamScheduleOrder(wmsStreamScheduleOrder);
    }

    /**
     * 批量删除排班出库关联表
     * 
     * @param scheduleIds 需要删除的排班出库关联表主键
     * @return 结果
     */
    @Override
    public int deleteWmsStreamScheduleOrderByScheduleIds(Long[] scheduleIds)
    {
        return wmsStreamScheduleOrderMapper.deleteWmsStreamScheduleOrderByScheduleIds(scheduleIds);
    }

    /**
     * 删除排班出库关联表信息
     * 
     * @param scheduleId 排班出库关联表主键
     * @return 结果
     */
    @Override
    public int deleteWmsStreamScheduleOrderByScheduleId(Long scheduleId)
    {
        return wmsStreamScheduleOrderMapper.deleteWmsStreamScheduleOrderByScheduleId(scheduleId);
    }
}
